import axios from "axios"
let HotelMain={
    state:{
        HotelMaindata:[],
    },
    mutations:{
        chengeHotel(state,payload){
            state.HotelMaindata = payload.datas
        },
    },
    actions:{
      async chenge(context,payload){
        let {data}= await axios({
            url:"http://localhost:3000/Hotelimg",
            method:"GET",
        }) 
        console.log(data);
        context.commit("chengeHotel",{datas:data})
        }
        
    },
    getters:{

    },
}
export default HotelMain